package com.gengzp.common.model.user.req;

import com.gengzp.common.model.generic.req.SearchByIdReq;
import io.swagger.annotations.ApiModel;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @ClassName EditSysUserPasswordReq
 * @Description 修改用户密码请求实体
 * @Author gengzp
 * @Date 2025/9/19 14:44
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("修改用户密码请求实体")
public class EditSysUserPasswordReq extends SearchByIdReq {

    @Serial
    private static final long serialVersionUID = -7216294778753579827L;

    /**
     * 旧密码
     */
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    private String newPassword;

}
